<?php
$loader->requireOnce('includes/LabConnector/LabComponentConnector.class.php');
/**
 *
 * @package include
 * @author viethd
 * @version $Id$
 * @copyright 2009 LHV Company
 */
class LabQueueConnector extends LabComponentConnector {
	const LAB_QUEUE_PATH       =   'C_LabQueue';
	function __construct() {
		parent::__construct();
	}

	public function addPatient($labAssignmentTicketId) {
		$labQueueController = $this->hisLoader->getObj(LabQueueConnector::LAB_QUEUE_PATH);
		return $labQueueController->addPatient($labAssignmentTicketId);
	}

	public function finishAssignment($labAssignmentTicketId) {
		$labQueueController = $this->hisLoader->getObj(LabQueueConnector::LAB_QUEUE_PATH);
		$result   =   $labQueueController->actionFinishProcessingQueueItemAjax($labAssignmentTicketId);
		return json_decode($result, true);
	}
}
?>